package ast.statement.insert

import ast.expr.SqlExpr
import ast.statement.SqlStatement
import ast.statement.select.SqlSelectQuery

/**
 * sql语法树：插入语句
 * @property table SqlExpr? 操作的表
 * @property columns MutableList<SqlExpr> 字段列表
 * @property values MutableList<List<SqlExpr>> 插入值列表
 * @property query SqlSelectQuery? 插入语句子查询
 */
data class SqlInsert(
    var table: SqlExpr? = null,
    val columns: MutableList<SqlExpr> = mutableListOf(),
    val values: MutableList<List<SqlExpr>> = mutableListOf(),
    var query: SqlSelectQuery? = null
) : SqlStatement